Here's another sparse-merge patch to allow ARCH to be set on the
command-line, and to add -C to the final hg update since it's probably
switching between branches.
Signed-off-by: Aron Griffis <aron@hp.com>
# Tag of new upstream base to go to
: ${NEWTAG:=v$(wget -O- -o/dev/null http://kernel.org/kdist/finger_banner \
| awk '/latest stable/{print $NF}')}
+# Restrict merge to specific arch (set to . for all)
+: ${ARCH:=ia64}
SPARSEDIR=linux-2.6-xen-sparse
done
hg up -C $OLDTAG || exit 1
cd $WD
-for i in $(hg manifest | awk '{print($3)}' | grep $SPARSEDIR | grep ia64); do
+for i in $(hg manifest | awk '{print($3)}' | grep $SPARSEDIR | grep "$ARCH"); do
cd $WD
FILENAME=$(basename $i)
fi
done
cd $LINUXPATH
-hg up $OLDCSET
+hg up -C $OLDCSET
cd $WD